package com.njl.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.njl.dao.UsersDao;
import com.njl.entity.User;
import com.njl.service.UsersService;

@Service
public class UsersServiceImpl implements UsersService {
	@Autowired
	private UsersDao userDao;

	@Override
	public String registerUser(User user)throws Exception {
		userDao.registerUser(user);
		return "success";
	}

}
